﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace AdslMonitorLibrary
{
    public class WebClientExtended : WebClient
    {
        public int Timeout
        {
            get;
            set;
        }

        public WebClientExtended()
        {
            this.Timeout = 60000;
        }

        protected override WebRequest GetWebRequest(Uri address)
        {
            WebRequest webRequest = base.GetWebRequest(address);
            webRequest.Timeout = this.Timeout;
            return webRequest;
        }
    }
}
